import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import '../views/index.dart';
import '../views/goodsList.dart';
import '../views/cart.dart';

class Routes {
  static Router router;
  static String index = "/";
  static String goodsList = "/goodsList";
  static String cardGoodsList = "/cartGoodsList";

  static void configureRoutes(Router router) {
    router.notFoundHandler = Handler(handlerFunc: (BuildContext context , Map<String, List<String>> params){});
    router.define(index, handler: Handler(handlerFunc: (context, params) => AppPage() ));
    router.define(goodsList, handler: Handler(handlerFunc: (context, params) => GoodsList()));
    router.define(cardGoodsList, handler: Handler(handlerFunc: (context, params) => CartPage()));

    Routes.router = router;

  }

}